package com.im.chat.service;

import com.im.chat.base.BasePageService;
import com.im.chat.model.ChatSession;

import java.util.List;

public interface ChatSessionService extends BasePageService<ChatSession> {


    ChatSession getChatSessionByChatId(long chatId);


    ChatSession getChatSessionByMemberIdAndAdminId(long memberId,long adminId);


    long insertChatSession(ChatSession chatSession);

    List<ChatSession> selectByAdmin(long adminId);

    List<ChatSession> selectAllMemberByAdmin(Long adminId);

    //TODO:待修复？？？
    public List<ChatSession> selectByMember(long memberId);


    int adminTopSession(long chatId,long adminId);

    //TODO:待修复？？？
    int updateAdminSession(long chatId,long adminId);

//    //TODO:待修复？？
//    int memberCloseSession(long chatId,long member);

    int adminCloseSession(long chatId,long adminId);

    int blackSession(long chatId,long adminId);


}
